package cn.cvs.mapper.storagerecord;

import cn.cvs.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 */

public interface StorageRecordMapper {

    int getCount(@Param ( "goodsName" )String goodsName, @Param ( "supplierId" )Integer supplierId, @Param ( "payStatus" )Integer payStatus);

    List<StorageRecord> getList(@Param ( "goodsName" )String goodsName,@Param ( "supplierId" )Integer supplierId,@Param ( "payStatus" )Integer payStatus,@Param ( "pageNo" )Integer pageNo,@Param ( "pageSize" )Integer pageSize);

    int add(StorageRecord storageRecord);

    int del(Integer id);

    int update(StorageRecord storageRecord);

    StorageRecord getStorageRecordById(@Param ( "id" ) Integer id);
}
